package com.bill.springcloud.eurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @fileName: HelloController.java
 * @author: bin.li01
 * @date: 2018/2/1 10:50
 * @version: v1.0.0
 */
@RestController
public class HelloController {

    @Value("${server.port}")
    String port;
    @RequestMapping("/hello")
    public String hello(@RequestParam String name) {
        return "hello "+name+",i am from port:" +port;
    }
}
